'''
Author: Huang Zeqing
Date: 2025-03-27 16:07:38
LastEditTime: 2025-04-23 17:13:05
LastEditors: zhuanglaihong
Description: 
FilePath: /zlh/gfs_revise/src/core/config.py
Copyright: Copyright (c) 2021-2024 zhuanglaihong. All rights reserved.
'''

from pathlib import Path
import sys

import os
#%%
ROOT_DIR = Path(__file__).parent.parent.absolute()

gfs_var_nm = 'A_PCP_L1_Accum_1'
cens_thres = (0.01, 0.01)
fix_rnd_seed = 42

leads = list(range(24, 120+1, 24)) # 预报时效范围



version = 'v01'
#data_path = utils.make_path(['data'], parent_dir=data_experiments) # 数据存放路径
#fig_path = utils.make_path(['figure'], parent_dir=data_experiments) # 图像存放路径

#resample_mswep_path = utils.make_path(['resampled_MSWEP'], parent_dir=data_path) # 重采样MSWEP数据存放路径
# first month of the target season

#%%

mth_names = {1: 'Jan',
             2: 'Feb',
             3: 'Mar',
             4: 'Apr',
             5: 'May',
             6: 'Jun',
             7: 'Jul',
             8: 'Aug',
             9: 'Sep',
             10: 'Oct',
             11: 'Nov',
             12: 'Dec'}

mth_names_cn = {1: '一月',
                2: '二月',
                3: '三月',
                4: '四月',
                5: '五月',
                6: '六月',
                7: '七月',
                8: '八月',
                9: '九月',
                10: '十月',
                11: '十一月',
                12: '十二月'}

subplot_ids = {1: '(a)',
               2: '(b)',
               3: '(c)',
               4: '(d)',
               5: '(e)',
               6: '(f)',
               7: '(g)',
               8: '(h)',
               9: '(i)',
               10: '(j)',
               11: '(k)',
               12: '(l)'}

alignment = {
    'horizontalalignment' : 'left',
    'verticalalignment' : 'bottom',
}

quantile_color=(
    (77/255., 190/255., 238/255.),
    (0/255., 114/255., 189/255.),
    (217/255., 83/255., 25/255.)
)


# MINIO配置
MINIO_COLD_ACCESS_KEY = os.getenv("MINIO_COLD_ACCESS_KEY", "9VZUFSCOtqPyunA4N1mU")
MINIO_COLD_SECRET_KEY = os.getenv("MINIO_COLD_SECRET_KEY", "ldQPUw5FYmnQQ93nG3p1Iq2wE4jUuWLEvOROdb8Z")
MINIO_COLD_ENDPOINT = os.getenv("MINIO_COLD_ENDPOINT", "http://10.48.0.86:9000/")